<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="common :: header"/>
<body>
<style>
    .dm-form{padding: 20px 30px 10px 60px;}
    .dm-form tr{height: 45px;}
    .dm-label{width: 100px;padding-right: 15px;text-align: right; font-weight: bold}
    .dm-content{width: 500px;}
</style>
<form class="dm-form">
    <table>
        <tr>
            <td class="dm-label">模块名称：</td>
            <td class="dm-content">[[${log.title}]]</td>
        </tr>
        <tr>
            <td class="dm-label">登录信息：</td>
            <td class="dm-content">
                [[${log.operName}]] / [[${log.operIp}]] / [[${log.operLocation}]]</td>
        </tr>
        <tr>
            <td class="dm-label">设备信息：</td>
            <td class="dm-content">
                [[${log.os}]] / [[${log.browser}]]</td>
        </tr>
        <tr>
            <td class="dm-label">请求地址：</td>
            <td class="dm-content"><span style="color: green">[[${log.requestMethod}]]</span> [[${log.operUrl}]]</td>
        </tr>
        <tr>
            <td class="dm-label">操作方法：</td>
            <td class="dm-content">[[${log.method}]]</td>
        </tr>
        <tr>
            <td class="dm-label">请求参数：</td>
            <td class="dm-content">
                <pre class="layui-code" lay-title="JavaScript" lay-skin="notepad">[[${log.operParam}]]</pre>
            </td>
        </tr>
        <tr>
            <td class="dm-label">返回参数：</td>
            <td class="dm-content">
                <pre class="layui-code" lay-title="JavaScript" lay-skin="notepad">[[${log.jsonResult}]]</pre>
            </td>
        </tr>
        <tr>
            <td class="dm-label">错误消息：</td>
            <td class="dm-content">
                <pre class="layui-code" lay-title="JavaScript" lay-skin="notepad">[[${log.errorMsg}]]</pre>
            </td>
        </tr>
        <tr>
            <td class="dm-label">结果状态：</td>
            <td class="dm-content">
                <span th:if="${log.status == 0}" class="layui-badge layui-bg-green">成功</span>
                <span th:if="${log.status == 1}" class="layui-badge">失败</span>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
